package unilearn.vo;

import java.util.Date;

public class Submission implements java.io.Serializable {

    private Integer id;
    private Date submissionDate;
    private String fileUrl;
    private Integer markerId;
    private Integer autorId;
    private String subjectCode;
    private int assignmentId;
    private int submissionStatus;

    public Submission() {
        id = -1;
        markerId = -1;
        autorId = -1;
        assignmentId = -1;
    }

    public Submission(Date submissionDate, String fileUrl, String subjectCode, int assignmentId, int submissionStatus) {
        this.submissionDate = submissionDate;
        this.fileUrl = fileUrl;
        this.subjectCode = subjectCode;
        this.assignmentId = assignmentId;
        this.submissionStatus = submissionStatus;
    }

    public Submission(Date submissionDate, String fileUrl, Integer markerId, Integer autorId, String subjectCode, int assignmentId, int submissionStatus) {
        this.submissionDate = submissionDate;
        this.fileUrl = fileUrl;
        this.markerId = markerId;
        this.autorId = autorId;
        this.subjectCode = subjectCode;
        this.assignmentId = assignmentId;
        this.submissionStatus = submissionStatus;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getSubmissionDate() {
        return this.submissionDate;
    }

    public void setSubmissionDate(Date submissionDate) {
        this.submissionDate = submissionDate;
    }

    public String getFileUrl() {
        return this.fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Integer getMarkerId() {
        return this.markerId;
    }

    public void setMarkerId(Integer markerId) {
        this.markerId = markerId;
    }

    public Integer getAutorId() {
        return this.autorId;
    }

    public void setAutorId(Integer autorId) {
        this.autorId = autorId;
    }

    public String getSubjectCode() {
        return this.subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public int getAssignmentId() {
        return this.assignmentId;
    }

    public void setAssignmentId(int assignmentId) {
        this.assignmentId = assignmentId;
    }

    public int getSubmissionStatus() {
        return this.submissionStatus;
    }

    public void setSubmissionStatus(int submissionStatus) {
        this.submissionStatus = submissionStatus;
    }

    @Override
    public String toString() {
        return "Submission{" + "id=" + id + ", submissionDate=" + submissionDate + ", fileUrl=" + fileUrl + ", markerId=" + markerId + ", autorId=" + autorId + ", subjectCode=" + subjectCode + ", assignmentId=" + assignmentId + ", submissionStatus=" + submissionStatus + '}';
    }
}
